package com.micro.mic_order.stoge.controller;

import com.micro.mic_order.stoge.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author yijian
 * @Date 2021/12/30 19:28
 **/
@RestController
public class UserInfoController {

    @Autowired
    private OrderService orderService;

    @RequestMapping("/order/userInfo/{userId}")
    public Object querUserInfo(@PathVariable("userId") long userId){
       String result =  orderService.queryUserInfo(userId);
       return result;
    }
}
